package cn.chen.dao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springframework.data.annotation.Id;

/**
 * 用户表
 */
@Data
public class SysUser {
//    @TableId(type = IdType.ASSIGN_ID)//默认id类型
//    @TableId(type = IdType.AUTO)//数据库自增
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String account; //账号

    private Integer admin;  //是否为管理员

    private String avatar;  //头像

    private Long createDate; //创建时间

    private Integer deleted;  //是否删除

    private String email;   //邮箱

    private Long lastLogin; //最后登陆

    private String mobilePhoneNumber;  //手机号码

    private String nickname;    //昵称

    private String password;    //密码

    private String salt;    //加密

    private String status;  //状态
}


